package com.lin.chapter32.chapter2.strategy;

public class Context {
	private WorkAlgorithm workAlgorithm;

	public WorkAlgorithm getWorkAlgorithm() {
		return workAlgorithm;
	}

	public void setWorkAlgorithm(WorkAlgorithm workAlgorithm) {
		this.workAlgorithm = workAlgorithm;
	}

	public void work(){
		workAlgorithm.work();
	}
}
